package com.tianji.learning.service;

import com.tianji.learning.pojo.po.PointsBoard;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.pojo.vo.PointsBoardVO;
import com.tianji.learning.query.PointsBoardQuery;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 服务类
 * </p>
 *
 * @author author
 * @since 2023-11-10
 */
public interface IPointsBoardService extends IService<PointsBoard> {

    /**
     * 分页查询指定赛季的积分排行榜
     * @param query
     * @return
     */
    PointsBoardVO queryPointsBoardBySeason(PointsBoardQuery query);

    List<PointsBoard> queryHistoryBoardList(PointsBoardQuery query);

    List<PointsBoard> queryCurrentBoardList(String key, Integer pageNo, Integer pageSize);

    void createPointBoardTable(Integer season);
}
